package com.ssb.admin.modules.sys.permission.dao;

import com.ssb.admin.modules.sys.permission.entity.SysPermission;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author duaichao
 * @since 2018-08-23
 */
@Repository
public interface SysPermissionDao extends BaseMapper<SysPermission> {
    /**
     * 查询角色的所有菜单
     * @param roleId  角色ID
     * @return list<String>
     */
    List<SysPermission> queryAllMenusByRoleId(Long roleId);
    /**
     * 查询角色的所有菜单
     * @param roleId  角色ID
     * @return list<String>
     */
    List<SysPermission> queryAllMenuItemsByRoleId(Long roleId);
}
